# https://hub.docker.com/r/jippi/pritupwdnl
# https://client.pritunl.com/#install

data_dir=~/docker/volume

mkdir $data_dir/pritunl/{mongodb,pritunl} -p
chown -R daemon:daemon $data_dir/pritunl

docker run -dti --name pritunl \
    --privileged \
    --restart=always \
    -p 9445:1194/udp \
    -p 9445:1194/tcp \
    -p 9444:80/tcp \
    -p 9443:443/tcp \
    -p 1191:1191/udp \
    -p 19443:19443/udp \
    -v $data_dir/pritunl/mongodb:/var/lib/mongodb \
    -v $data_dir/pritunl/pritunl:/var/lib/pritunl \
    jippi/pritunl